<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>计算属性</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="example">
    {{ message.split('').reverse().join('') }}
</div>

<script>
    new Vue({
        el: '#example',
        data: {
            message: 'abc'
        }
    })
</script>
</body>
</html>